package com.joey.cloud.psn.business.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.joey.cloud.annotation.dic.JoeDicField;
import com.joey.cloud.annotation.dic.JoeEnableDic;
import com.joey.cloud.communal.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.beans.Transient;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * 用户信息
 * </p>
 *
 * @author Joey
 * @since 2021-03-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@JoeEnableDic
@ApiModel(value="SysPerson对象", description="用户信息")
public class SysPerson extends BaseEntity implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "名称")
    @TableField("psnName")
    private String psnName;

    @ApiModelProperty(value = "头像地址")
    private Integer avatar;

    @TableField("avatarUrl")
    private String avatarUrl;

    @ApiModelProperty(value = "性别0=未知1=男2=女")
    private Integer gender;

    @ApiModelProperty(value = "介绍")
    private String introduction;

    @ApiModelProperty(value = "性别")
    @TableField(exist = false)
    @JoeDicField(key = "sex_012",field = "gender")
    private String genderName;



}
